class TradeListBean {
  bool success;
  String message;
  int code;
  List<Result> result;
  int timestamp;

  TradeListBean(
      {this.success, this.message, this.code, this.result, this.timestamp});

  TradeListBean.fromJson(Map<String, dynamic> json) {
    success = json['success'];
    message = json['message'];
    code = json['code'];
    if (json['result'] != null) {
      result = new List<Result>();
      json['result'].forEach((v) {
        result.add(new Result.fromJson(v));
      });
    }
    timestamp = json['timestamp'];
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    data['success'] = this.success;
    data['message'] = this.message;
    data['code'] = this.code;
    if (this.result != null) {
      data['result'] = this.result.map((v) => v.toJson()).toList();
    }
    data['timestamp'] = this.timestamp;
    return data;
  }
}

class Result {
  String tradeDivision;
  var settlementAmount;

  Result({this.tradeDivision, this.settlementAmount});

  Result.fromJson(Map<String, dynamic> json) {
    tradeDivision = json['tradeDivision'];
    settlementAmount = json['settlementAmount'];
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    data['tradeDivision'] = this.tradeDivision;
    data['settlementAmount'] = this.settlementAmount;
    return data;
  }
}
